package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class XJTEmerPondingRowMapper implements RowMapper<XJTEmerPonding>{


	@Override
	public XJTEmerPonding mapRow(ResultSet rs, int rowNum) throws SQLException {
		XJTEmerPonding  lj= new XJTEmerPonding();
		lj.setId(rs.getInt("id"));
		lj.setPonding_name(rs.getString("ponding_name"));
		lj.setPonding_type(rs.getString("ponding_type"));
		lj.setPonding_site(rs.getString("ponding_site"));
		lj.setDuty_dept(rs.getString("duty_dept"));
		lj.setMaintenance_dept(rs.getString("maintenance_dept"));
		lj.setEmergency_support_dept(rs.getString("emergency_support_dept"));
		lj.setRescue_dept_mem(rs.getString("rescue_dept_mem"));
		lj.setRescue_dept_phone(rs.getString("rescue_dept_phone"));
		lj.setContactor(rs.getString("contactor"));
		lj.setPhone(rs.getString("phone"));
		lj.setTel(rs.getString("tel"));
		lj.setLng(rs.getString("lng"));
		lj.setLat(rs.getString("lat"));

		return lj;
	}

}
